<!DOCTYPE html>
<html>
<head>
</head>

<body class="fixed-navbar fixed-sidebar">
<div class="panel-body no-padding">
    <div class="table-responsive">
        <table cellpadding="1" cellspacing="1" class="table table-striped table-bordered table-hover text-center" id="esateTable">
            <thead>
            <tr>
                <g:sortableColumn property="externalId" title="押品编号" action="searchEstate" class="col-md-1 text-center"
                                  params="${params}"/>
                <g:sortableColumn property="buildingType" title="房屋用途"  action="searchEstate" class="col-md-1 text-center" params="${params}"/>
                <g:sortableColumn property="city" title="城市"  action="searchEstate" class="col-md-1 text-center" params="${params}"/>
                <g:sortableColumn property="district" title="行政区"  action="searchEstate" class="col-md-1 text-center" params="${params}"/>
                <g:sortableColumn property="sourceAddress" title="房屋坐落"  action="searchEstate" class=" col-md-1 text-center" params="${params}"/>
                <g:sortableColumn property="buildArea" title="面积(平米)"  action="searchEstate"
                                  class="col-md-1 text-center" params="${params}"/>
                <g:sortableColumn property="loansAmount" title="贷款金额(元)"  action="searchEstate" class="col-md-1 text-center" params="${params}"/>
                <g:sortableColumn property="loansBalance" title="贷款余额(元)"  action="searchEstate" class=" col-md-1 text-center" params="${params}"/>
                <g:sortableColumn property="totalPrice" title="当前估值(元)"  action="searchEstate"
                                  class="col-md-1 text-center" params="${params}"/>
                <g:sortableColumn property="cltv" title="动态抵押率"  action="searchEstate" class=" col-md-1 text-center" params="${params}"/>
                <g:sortableColumn property="cltv" title="押品风险"  action="searchEstate" class=" col-md-1 text-center" params="${params}"/>
            </tr>
            </thead>
            <tbody>
            <g:each in="${estateList}">
                <tr>
                    <td class="text-center"><g:link style="color: #3498DB"
                                                    action="show" id="${it?.id}"
                                                    class="firstTd">${it?.externalId}</g:link></td>
                    <td class="text-center">${it?.buildingType?.name}</td>
                    <td class="text-center">${it?.city?.name}</td>
                    <td class="text-center">${it?.district?.name}</td>
                    <td class="text-center">${it?.sourceAddress}</td>
                    <td class="text-center">${it?.buildArea}</td>
                    <td class="text-center">${it?.loansAmount}</td>
                    <td class="text-center">${it?.loansBalance}</td>
                    <td class="text-center">${it?.totalPrice}</td>
                    <td class="text-center">${it?.cltv?com.cindata.NumberUtil.GetFixedNumber(it?.cltv*100):'0.00'}%</td>
                    <td class="text-center"><g:if test="${it?.cltv>=0&&it?.cltv<=0.6}">低</g:if>
                    <g:if test="${it?.cltv>0.6&&it?.cltv<=0.8}">中</g:if>
                    <g:if test="${it?.cltv>0.8&&it?.cltv<=1}">高</g:if>
                    <g:if test="${it?.cltv>1}">损失</g:if>
                    </td>
                </tr>
            </g:each>
            </tbody>
        </table>
    </div>
</div>
</body>
</html>
